
#-------------------------------------------------------------------------------
# Configure variable
#-------------------------------------------------------------------------------
TOP_DIR:=$(TOP_DIR)
ROOT_DIR:=$(TOP_DIR)/../..
MAKEFILE_PATH :=$(subst $(strip \),/,$(abspath $(lastword $(MAKEFILE_LIST))))


#-------------------------------------------------------------------------------
# Configure source code files
#-------------------------------------------------------------------------------
SRC_FILES+= \
  library/aes.c \
  library/aesni.c \
  library/arc4.c \
  library/asn1parse.c \
  library/asn1write.c \
  library/base64.c \
  library/bignum.c \
  library/blowfish.c \
  library/camellia.c \
  library/ccm.c \
  library/certs.c \
  library/cipher.c \
  library/cipher_wrap.c \
  library/cmac.c \
  library/ctr_drbg.c \
  library/debug.c \
  library/des.c \
  library/dhm.c \
  library/ecdh.c \
  library/ecdsa.c \
  library/ecjpake.c \
  library/ecp.c \
  library/ecp_curves.c \
  library/entropy.c \
  library/entropy_poll.c \
  library/error.c \
  library/gcm.c \
  library/havege.c \
  library/hmac_drbg.c \
  library/md.c \
  library/md_wrap.c \
  library/md2.c \
  library/md4.c \
  library/md5.c \
  library/memory_buffer_alloc.c \
  library/net_sockets.c \
  library/oid.c \
  library/padlock.c \
  library/pem.c \
  library/pk.c \
  library/pk_wrap.c \
  library/pkcs5.c \
  library/pkcs11.c \
  library/pkcs12.c \
  library/pkparse.c \
  library/pkwrite.c \
  library/platform.c \
  library/ripemd160.c \
  library/rsa.c \
  library/sha1.c \
  library/sha256.c \
  library/sha512.c \
  library/ssl_cache.c \
  library/ssl_ciphersuites.c \
  library/ssl_cli.c \
  library/ssl_cookie.c \
  library/ssl_srv.c \
  library/ssl_ticket.c \
  library/ssl_tls.c \
  library/threading.c \
  library/timing.c \
  library/version.c \
  library/version_features.c \
  library/x509.c \
  library/x509_create.c \
  library/x509_crl.c \
  library/x509_crt.c \
  library/x509_csr.c \
  library/x509write_crt.c \
  library/x509write_csr.c \
  library/xtea.c \

  
#-------------------------------------------------------------------------------
# the include directories
#-------------------------------------------------------------------------------
INC_DIRS+= \
  -I${TOP_DIR}/ \
  -I${TOP_DIR}/interface/third_party/qcloud-iot/external_libs/mbedtls/configs \
  -I${TOP_DIR}/interface/third_party/qcloud-iot/external_libs/mbedtls/include/mbedtls \

#-------------------------------------------------------------------------------
# Configure compile flag for C
#-------------------------------------------------------------------------------
U_FLAGS:=

#-------------------------------------------------------------------------------
# Configure compile flag for C++
#-------------------------------------------------------------------------------
U_CPPFLAGS:=

#-------------------------------------------------------------------------------
# Configure default macro define
#-------------------------------------------------------------------------------
DFLAGS+= \
  -D__TM_ZONE=tm_zone \
  -D__TM_GMTOFF=tm_gmtoff \


#-------------------------------------------------------------------------------
# Configure link library
#-------------------------------------------------------------------------------
U_LIBS:=

#-------------------------------------------------------------------------------
# include mk file
#-------------------------------------------------------------------------------
include ${TOP_DIR}/config/common/makefile.mk
